<?php
/**
 * Created by PhpStorm.
 * User: huynguyen
 * Date: 10/2/14
 * Time: 10:08 PM
 */

namespace Common\Models\Images;


class Images extends \Phalcon\Mvc\Model
{
	protected $id;

	protected $image_path;

	protected $width;

	protected $height;

	protected $size;


    public function getSource()
    {
        return 'images';
    }
    
    public function initialize()
    {
        $this->setSource('images');

        $this->hasOne('id' , 'Common\Models\Images\ImageLink' , 'image_id' , array(
            'alias' => 'imageLink'
        ));
    }
    
    /**
     * @param mixed $height
     */
    public function setHeight($height)
    {
        $this->height = $height;
    }

    /**
     * @return mixed
     */
    public function getHeight()
    {
        return $this->height;
    }

    /**
     * @param mixed $id
     */
    public function setId($id)
    {
        $this->id = $id;
    }

    /**
     * @return mixed
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @param mixed $image_path
     */
    public function setImagePath($image_path)
    {
        $this->image_path = $image_path;
    }

    /**
     * @return mixed
     */
    public function getImagePath()
    {
        return $this->image_path;
    }

    /**
     * @param mixed $size
     */
    public function setSize($size)
    {
        $this->size = $size;
    }

    /**
     * @return mixed
     */
    public function getSize()
    {
        return $this->size;
    }

    /**
     * @param mixed $width
     */
    public function setWidth($width)
    {
        $this->width = $width;
    }

    /**
     * @return mixed
     */
    public function getWidth()
    {
        return $this->width;
    }



} 